<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{:$i->title}</title>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/admin.css" rel="stylesheet" type="text/css" />
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/common/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.mydialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/common.js"></script>
</head>
<body>
<div class="wrapper">
  <div class="title shadow titleBg">
    <table width="100%" border="0" cellspacing="1">
      <tr>
        <td><h1> {:$i->title} <span>[<a href="{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/add/0/{:$i->p[2]}">添加字段</a>]</span></h1></td>
      </tr>
    </table>
  </div>   
  <div class="content shadow">
    <table width="100%" border="0" cellspacing="1">
      <tr class="titleBg">
        <th scope="col">排序</th>
        <th scope="col">字段提示</th>
        <th scope="col">字段名</th>
        <th scope="col">类型</th>
        <th scope="col">操作</th>
      </tr>
      {:foreach item=item from=$i->lists}<tr>
        <td>{:$item->ordering}</td>
        <td>{:$item->name}</td>
        <td>{:$item->field}</td>
        <td>{:$item->type}</td>
        <td><a href="{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/mod/{:$item->id}/{:$i->p[2]}">修改</a> | <a onclick="if(confirm('确定要删除？'))del({:$item->id},'{:$item->field}');return false;" href="#@">删除</a></td>
      </tr>{:/foreach}       
      <tr>
        <td colspan="6" class="lightGreyBg textL"> {:$i->pagesCode}</td>
      </tr>
    </table>
  </div>
</div>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/tooltip.css" rel="stylesheet" type="text/css" />
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/ui.all.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.core.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.draggable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.resizable.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/ui.dialog.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/jquery.tooltip.js"></script>
<script language="javascript" type="text/javascript" src="{:$smarty.const.PUBLIC_DIR}/common/js/common.js"></script>
<script language="javascript" type="text/javascript">
function del(id,field)
{
	getDialog('{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/del/'+id+'/{:$i->p[2]}/'+field, '{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}/lists/0/{:$i->p[2]}');
	
	return false;
}
</script>
</body>
</html>
